<span class={(() => 'red')()}>A</span>
<div>
  <span class={(() => 'red')()}>B</span>
</div>
